<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>全部诊疗病历</title>
    <script src="__JS__/vue.min.js"></script>
</head>
<style>
    body{
        background-color: #eee;
    }
    .all{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .a{
        display: flex;
        flex-direction: column;
        width: 85%;
        background-color: #FFF;
        border-radius: 10px;
        margin-top: 20px;
        box-shadow:  0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        padding: 20px;
    }
    .top{
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 15px;
    }
    .middle{
        display: flex;
        justify-content: flex-start;
    }
    .footer{
        display: flex;
        margin-top: 5px;
        font-size: 10px;
        justify-content: flex-start;
    }
</style>
<body>
<div class="all" id="app">
    {volist name="list" id="l"}
    <div class="a"  @click="go('record?u_id='+{$l.u_id})">
        <div class="top">
            {$l.name}
        </div>
        <div class="middle">病历记录</div>
        <div class="footer">{$l.cTime}</div>
    </div>
    {/volist}
</div>
</body>
<script type="text/javascript" >
    var vm = new Vue({
        el:"#app",
        methods:{
            go(url){
                console.log(1)
                window.location.href=url
            }
        },

    })
</script>
</html>